package com.zzyl.nursing.controller.member;

import com.zzyl.common.core.controller.BaseController;
import com.zzyl.common.core.domain.AjaxResult;
import com.zzyl.common.core.domain.R;
import com.zzyl.common.utils.UserThreadLocal;
import com.zzyl.nursing.service.IReservationService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 小程序预约
 *
 * @Author wd
 * @Date 2025/5/23 21:39
 */
@RestController
@RequestMapping("/member/reservation")
@Api(tags = "小程序预约接口")
public class MemberReservationController extends BaseController {

    @Autowired
    private IReservationService reservationService;

    @GetMapping("/cancelled-count")
    public R<Integer> getCancelledCount(){

//        Integer count = reservationService.getCancelledCount();

        Long userId = UserThreadLocal.getUserId();
        System.out.println("------" + userId);
//        System.out.println("--------"+count);
        return R.ok(1);
    }






}
